package com.swotxu.oldwebproject.session.conf;

/**
 * 全局标识，记录是否使用 redisSession
 * true - 使用
 * false - 禁用
 *
 * @Date: 2020/1/2 18:48
 * @Author: xu.hai
 */
public class RedisSessionHelper {
    private static volatile boolean useRedisSession;

    public static boolean isUseRedisSession() {
        return useRedisSession;
    }

    public static synchronized void setUseRedisSession(boolean useRedisSession) {
        RedisSessionHelper.useRedisSession = useRedisSession;
    }
}
